const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
    transpileDependencies: true,
    // 通过服务器代理解决跨域问题
    devServer: {
        proxy: {
            '/api': {
                // target: "http://192.168.113.249:8081/cms",
                target: process.env.VUE_APP_BASE_URL,
                pathRewrite: {
                    '^/api': ''
                }
            }
        }
    }
})